Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-12 Thread Sylvain Hubert via ntg-context
(...tail calls...) Sylvain On Sat, 11 Sept 2021 at 05:12, Aditya Mahajan via ntg-context < ntg-context@ntg.nl> wrote: > I sometimes define lua functions for showing out worked out calculations. > The following minimal example shows that > > context([[\startformula ... \st

Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-11 Thread Aditya Mahajan via ntg-context
On Sat, 11 Sep 2021, Hans Hagen wrote: > On 9/11/2021 5:11 AM, Aditya Mahajan via ntg-context wrote: > > I sometimes define lua functions for showing out worked out calculations. > > The following minimal example shows that > > > >context([[\startformula ... \st

Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-11 Thread Hans Hagen via ntg-context
On 9/11/2021 5:11 AM, Aditya Mahajan via ntg-context wrote: I sometimes define lua functions for showing out worked out calculations. The following minimal example shows that context([[\startformula ... \stopformula]]) fails in LMTX with an error message: tex error > tex er

[NTG-context] Weird error when using \startformula inside lua

2021-09-10 Thread Aditya Mahajan via ntg-context
I sometimes define lua functions for showing out worked out calculations. The following minimal example shows that context([[\startformula ... \stopformula]]) fails in LMTX with an error message: tex error > tex error on line 3 in file ./test.tex: Undefined control seque

[NTG-context] Side effects with \startformula \stopformula

2020-02-09 Thread Fabrice Couvreur
Hi, I composed a large document and I often use \ startformula \ stopformula. I have the impression that this creates untimely page breaks or white spaces. Fabrice ___ If your question is of interest to others as well

Re: [NTG-context] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Alan Bowen
t;> Den 29 maj 2017 6:13 em skrev "Alan Bowen" <bowenala...@gmail.com>: >> >> How does one control/suppress the whitespace before and after >> \startformula…\stopformula? >> >> Alan >> >>

Re: [NTG-context] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Alan Bowen
Thanks, Mikael. That is just what I needed. All best, Alan On Mon, May 29, 2017 at 1:02 PM, Mikael P. Sundqvist <mic...@gmail.com> wrote: > Den 29 maj 2017 6:13 em skrev "Alan Bowen" <bowenala...@gmail.com>: > > How does one control/suppress the whitespace b

Re: [NTG-context] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Aditya Mahajan
On Mon, 29 May 2017, Alan Bowen wrote: How does one control/suppress the whitespace before and after \startformula…\stopformula? Using spacebefore and spaceafter in \setupformula Aditya___ If your question

Re: [NTG-context] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Mikael P. Sundqvist
Den 29 maj 2017 6:13 em skrev "Alan Bowen" <bowenala...@gmail.com>: How does one control/suppress the whitespace before and after \startformula…\stopformula? Alan ___ If your question is of in

Re: [NTG-context] Difficulties with \startformula

2014-01-14 Thread Hans Hagen
] /Ascent 1127 /CapHeight 683 /Descent -280 /ItalicAngle 0 /StemV 91 /XHeight 431 In context, \hbox{\startformula x+y \stopformula} boils down to \hbox{\par $$ x+y $$ \par} plus some more so i decided to turn this into \hbox{\par \Ustartdisplaymath x+y

[NTG-context] Difficulties with \startformula

2014-01-13 Thread Elspeth McGullicuddy
mouse text selection with Okular (haven't tried with another viewer): When I mouse text select elements of the formula, when the \startformula \stopformula in embeded in a \hbox, what is highlighted looks alright. Instead, when it's in vertical mode, what is highlighted is very very large. It's

Re: [NTG-context] about \startformula\startalign error

2012-07-23 Thread dalyoung
Dear Aditya, Using \framed[]{}, I got a good output. As you said, it might be better to define a macro for it. Thank you. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an

[NTG-context] about \startformula\startalign error

2012-07-22 Thread dalyoung
Dear all, In the following sample file, an error occurs in \startformula\startalign ... \stopalign\stopformula. The similar error occurs if I use \startformula\startmathcases. but \startmatrix works well. Did I do something wrong? Thank you for reading. Best regards, Dalyoung

Re: [NTG-context] about \startformula\startalign error

2012-07-22 Thread Aditya Mahajan
On 2012-07-22, at 8:21 AM, dalyoung hak...@me.com wrote: Dear all, In the following sample file, an error occurs in \startformula\startalign ... \stopalign\stopformula. The similar error occurs if I use \startformula\startmathcases. but \startmatrix works well. Did I do something

Re: [NTG-context] about \startformula\startalign error

2012-07-22 Thread dalyoung
Dear Aditya, \startformula must occur inside a vbox. So, use a matrix environment as you are doing, or wrap the formula inside a \framed[align=normal]. Thank you for your solution. \framed[frame=off,align=normal]{\startformula\startalign ... \stopalign\stopformula} is working. I have

Re: [NTG-context] about \startformula\startalign error

2012-07-22 Thread Aditya Mahajan
A \VL B \VL C \VL D \NC\SR \HL \NC $y$ \VL {\framed[frame=off, align=normal]{\startformula\startalign \NC x' = \NC \NR \NC y' = \NC \NR \stopalign\stopformula}} \VL \VL \NC\LR \HL \stoptable \stoptext Both of them are good for compiling, but need a slight touch. Use the \frame aligning options

Re: [NTG-context] how to use \startformula inside textext(...)?

2007-02-25 Thread Aditya Mahajan
On Sun, 25 Feb 2007, Mojca Miklavec wrote: Hello, How can I do something similar to this? \starttext \startMPcode draw textext(\startformula \sum_{i=0}^N i^2 \stopformula); \stopMPcode \stoptext I could not get the usual tricks to work here (place in a vbox or framed), but unless you

Re: [NTG-context] how to use \startformula inside textext(...)?

2007-02-25 Thread Sanjoy Mahajan
draw textext(\startformula \sum_{i=0}^N i^2 \stopformula); I'm always a bit scared of textext, but here's how I do what I think you are trying to do (get limits underneath) using btex..etex: label(btex $\displaystyle{\sum_{i=0}^N i^2}$ etex, origin); Hopefully the same works in textext

Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-27 Thread Hans Hagen
Aditya Mahajan wrote: On Wed, 27 Dec 2006, Zhichu Chen wrote: Hi Aditya, I've copied your codes and replaced the original ones with them, but I failed when I make the formats: texexec --make --all It gives me the following message: ---

Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-27 Thread Hans Hagen
Aditya Mahajan wrote: On Tue, 26 Dec 2006, Sanjoy Mahajan wrote: I just noticed this test file failing: \starttext $f'(x)$ \startformula f^\prime(x)\quad f'(x) \stopformula \stoptext It gives: ! Undefined control sequence. l.4 f^\prime(x)\quad f' (x

Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-27 Thread Taco Hoekwater
Hans Hagen wrote: This is a typo in math-pln.tex. The end of the file should be \bgroup \catcode`\_ = 13 \catcode`\' = 13 \doglobal\appendtoks \let_\activemathunderscore \let'\activemathquote \to \everymathematics %--- was \everymath \egroup ok, fixed

Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-27 Thread Sanjoy Mahajan
Aditya This is a typo in math-pln.tex. The end of the file should be Hans this trickery is related to a change in the catcode management of Hans context (which interferes with some plain tex left-overs) Taco Hans has uploaded a new version, with fix (context 2006.12.27). Just tested on my test

[NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Sanjoy Mahajan
I just noticed this test file failing: \starttext $f'(x)$ \startformula f^\prime(x)\quad f'(x) \stopformula \stoptext It gives: ! Undefined control sequence. l.4 f^\prime(x)\quad f' (x) As you can see from lack of complaint about $f'(x)$, the ' still works in inline math

Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Zhichu Chen
: On Tue, 26 Dec 2006, Sanjoy Mahajan wrote: I just noticed this test file failing: \starttext $f'(x)$ \startformula f^\prime(x)\quad f'(x) \stopformula \stoptext It gives: ! Undefined control sequence. l.4 f^\prime(x)\quad f' (x) This is a typo in math-pln.tex

Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Aditya Mahajan
On Wed, 27 Dec 2006, Zhichu Chen wrote: Hi Aditya, I've copied your codes and replaced the original ones with them, but I failed when I make the formats: texexec --make --all It gives me the following message: ---

Re: [NTG-context] Subtle problem with startformula

2006-01-23 Thread Hans Hagen
David Arnold wrote: All, If you're not aware of this one, consider: \placeformula[-] \startformula [-2,2)=\{x:\, -2\le x 2\}. \stopformula Won't compile, but try: \placeformula[-] \startformula\relax [-2,2)=\{x:\, -2\le x 2\}. \stopformula this is indeed a side effect of optional

[NTG-context] Subtle problem with startformula

2006-01-21 Thread David Arnold
All, If you're not aware of this one, consider: \placeformula[-] \startformula [-2,2)=\{x:\, -2\le x 2\}. \stopformula Won't compile, but try: \placeformula[-] \startformula\relax [-2,2)=\{x:\, -2\le x 2\}. \stopformula ___ ntg-context mailing

Re: [NTG-context] Reducing fontsize for some equations (\startformula), how done best

2004-01-13 Thread Hans Hagen
Hi Tobias, I have several equations. But for some of them (lengthy and uninteresting calculations) in the appendix the default fontsize is too big. What is the best way (command) to reduce their size consistently? Can you play with the following and let me know it this works ok with regards to

[NTG-context] Reducing fontsize for some equations (\startformula), how done best

2004-01-12 Thread Tobias Burnus
Hi, I have several equations. But for some of them (lengthy and uninteresting calculations) in the appendix the default fontsize is too big. What is the best way (command) to reduce their size consistently? Tobias ___ ntg-context mailing list [EMAIL